home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / layout / nsITreeSelection.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  15KB  |  395 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsITreeSelection.idl
  3.  */
  4.  
  5. #ifndef __gen_nsITreeSelection_h__
  6. #define __gen_nsITreeSelection_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsITreeBoxObject; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsITreeSelection */
  21. #define NS_ITREESELECTION_IID_STR "f8a13364-184e-4da3-badf-5c04837537f8"
  22.  
  23. #define NS_ITREESELECTION_IID \
  24.   {0xf8a13364, 0x184e, 0x4da3, \
  25.     { 0xba, 0xdf, 0x5c, 0x04, 0x83, 0x75, 0x37, 0xf8 }}
  26.  
  27. class NS_NO_VTABLE nsITreeSelection : public nsISupports {
  28.  public: 
  29.  
  30.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ITREESELECTION_IID)
  31.  
  32.   /**
  33.    * The tree widget for this selection.
  34.    */
  35.   /* attribute nsITreeBoxObject tree; */
  36.   NS_IMETHOD GetTree(nsITreeBoxObject * *aTree) = 0;
  37.   NS_IMETHOD SetTree(nsITreeBoxObject * aTree) = 0;
  38.  
  39.   /**
  40.    * This attribute is a boolean indicating single selection.
  41.    */
  42.   /* readonly attribute boolean single; */
  43.   NS_IMETHOD GetSingle(PRBool *aSingle) = 0;
  44.  
  45.   /**
  46.    * The number of rows currently selected in this tree.
  47.    */
  48.   /* readonly attribute long count; */
  49.   NS_IMETHOD GetCount(PRInt32 *aCount) = 0;
  50.  
  51.   /**
  52.    * Indicates whether or not the row at the specified index is
  53.    * part of the selection.
  54.    */
  55.   /* boolean isSelected (in long index); */
  56.   NS_IMETHOD IsSelected(PRInt32 index, PRBool *_retval) = 0;
  57.  
  58.   /**
  59.    * Deselect all rows and select the row at the specified index. 
  60.    */
  61.   /* void select (in long index); */
  62.   NS_IMETHOD Select(PRInt32 index) = 0;
  63.  
  64.   /**
  65.    * Perform a timed select.
  66.    */
  67.   /* void timedSelect (in long index, in long delay); */
  68.   NS_IMETHOD TimedSelect(PRInt32 index, PRInt32 delay) = 0;
  69.  
  70.   /**
  71.    * Toggle the selection state of the row at the specified index.
  72.    */
  73.   /* void toggleSelect (in long index); */
  74.   NS_IMETHOD ToggleSelect(PRInt32 index) = 0;
  75.  
  76.   /**
  77.    * Select the range specified by the indices.  If augment is true,
  78.    * then we add the range to the selection without clearing out anything
  79.    * else.  If augment is false, everything is cleared except for the specified range.
  80.    */
  81.   /* void rangedSelect (in long startIndex, in long endIndex, in boolean augment); */
  82.   NS_IMETHOD RangedSelect(PRInt32 startIndex, PRInt32 endIndex, PRBool augment) = 0;
  83.  
  84.   /**
  85.    * Clears the range.
  86.    */
  87.   /* void clearRange (in long startIndex, in long endIndex); */
  88.   NS_IMETHOD ClearRange(PRInt32 startIndex, PRInt32 endIndex) = 0;
  89.  
  90.   /**
  91.    * Clears the selection.
  92.    */
  93.   /* void clearSelection (); */
  94.   NS_IMETHOD ClearSelection(void) = 0;
  95.  
  96.   /**
  97.    * Inverts the selection.
  98.    */
  99.   /* void invertSelection (); */
  100.   NS_IMETHOD InvertSelection(void) = 0;
  101.  
  102.   /**
  103.    * Selects all rows.
  104.    */
  105.   /* void selectAll (); */
  106.   NS_IMETHOD SelectAll(void) = 0;
  107.  
  108.   /**
  109.    * Iterate the selection using these methods.
  110.    */
  111.   /* long getRangeCount (); */
  112.   NS_IMETHOD GetRangeCount(PRInt32 *_retval) = 0;
  113.  
  114.   /* void getRangeAt (in long i, out long min, out long max); */
  115.   NS_IMETHOD GetRangeAt(PRInt32 i, PRInt32 *min, PRInt32 *max) = 0;
  116.  
  117.   /**
  118.    * Can be used to invalidate the selection.
  119.    */
  120.   /* void invalidateSelection (); */
  121.   NS_IMETHOD InvalidateSelection(void) = 0;
  122.  
  123.   /**
  124.    * Called when the row count changes to adjust selection indices.
  125.    */
  126.   /* void adjustSelection (in long index, in long count); */
  127.   NS_IMETHOD AdjustSelection(PRInt32 index, PRInt32 count) = 0;
  128.  
  129.   /**
  130.    * This attribute is a boolean indicating whether or not the
  131.    * "select" event should fire when the selection is changed using
  132.    * one of our methods.  A view can use this to temporarily suppress
  133.    * the selection while manipulating all of the indices, e.g., on 
  134.    * a sort.
  135.    */
  136.   /* attribute boolean selectEventsSuppressed; */
  137.   NS_IMETHOD GetSelectEventsSuppressed(PRBool *aSelectEventsSuppressed) = 0;
  138.   NS_IMETHOD SetSelectEventsSuppressed(PRBool aSelectEventsSuppressed) = 0;
  139.  
  140.   /**
  141.    * The current item (the one that gets a focus rect in addition to being
  142.    * selected).
  143.    */
  144.   /* attribute long currentIndex; */
  145.   NS_IMETHOD GetCurrentIndex(PRInt32 *aCurrentIndex) = 0;
  146.   NS_IMETHOD SetCurrentIndex(PRInt32 aCurrentIndex) = 0;
  147.  
  148.   /**
  149.    * The selection "pivot".  This is the first item the user selected as
  150.    * part of a ranged select.
  151.    */
  152.   /* readonly attribute long shiftSelectPivot; */
  153.   NS_IMETHOD GetShiftSelectPivot(PRInt32 *aShiftSelectPivot) = 0;
  154.  
  155. };
  156.  
  157. /* Use this macro when declaring classes that implement this interface. */
  158. #define NS_DECL_NSITREESELECTION \
  159.   NS_IMETHOD GetTree(nsITreeBoxObject * *aTree); \
  160.   NS_IMETHOD SetTree(nsITreeBoxObject * aTree); \
  161.   NS_IMETHOD GetSingle(PRBool *aSingle); \
  162.   NS_IMETHOD GetCount(PRInt32 *aCount); \
  163.   NS_IMETHOD IsSelected(PRInt32 index, PRBool *_retval); \
  164.   NS_IMETHOD Select(PRInt32 index); \
  165.   NS_IMETHOD TimedSelect(PRInt32 index, PRInt32 delay); \
  166.   NS_IMETHOD ToggleSelect(PRInt32 index); \
  167.   NS_IMETHOD RangedSelect(PRInt32 startIndex, PRInt32 endIndex, PRBool augment); \
  168.   NS_IMETHOD ClearRange(PRInt32 startIndex, PRInt32 endIndex); \
  169.   NS_IMETHOD ClearSelection(void); \
  170.   NS_IMETHOD InvertSelection(void); \
  171.   NS_IMETHOD SelectAll(void); \
  172.   NS_IMETHOD GetRangeCount(PRInt32 *_retval); \
  173.   NS_IMETHOD GetRangeAt(PRInt32 i, PRInt32 *min, PRInt32 *max); \
  174.   NS_IMETHOD InvalidateSelection(void); \
  175.   NS_IMETHOD AdjustSelection(PRInt32 index, PRInt32 count); \
  176.   NS_IMETHOD GetSelectEventsSuppressed(PRBool *aSelectEventsSuppressed); \
  177.   NS_IMETHOD SetSelectEventsSuppressed(PRBool aSelectEventsSuppressed); \
  178.   NS_IMETHOD GetCurrentIndex(PRInt32 *aCurrentIndex); \
  179.   NS_IMETHOD SetCurrentIndex(PRInt32 aCurrentIndex); \
  180.   NS_IMETHOD GetShiftSelectPivot(PRInt32 *aShiftSelectPivot); 
  181.  
  182. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  183. #define NS_FORWARD_NSITREESELECTION(_to) \
  184.   NS_IMETHOD GetTree(nsITreeBoxObject * *aTree) { return _to GetTree(aTree); } \
  185.   NS_IMETHOD SetTree(nsITreeBoxObject * aTree) { return _to SetTree(aTree); } \
  186.   NS_IMETHOD GetSingle(PRBool *aSingle) { return _to GetSingle(aSingle); } \
  187.   NS_IMETHOD GetCount(PRInt32 *aCount) { return _to GetCount(aCount); } \
  188.   NS_IMETHOD IsSelected(PRInt32 index, PRBool *_retval) { return _to IsSelected(index, _retval); } \
  189.   NS_IMETHOD Select(PRInt32 index) { return _to Select(index); } \
  190.   NS_IMETHOD TimedSelect(PRInt32 index, PRInt32 delay) { return _to TimedSelect(index, delay); } \
  191.   NS_IMETHOD ToggleSelect(PRInt32 index) { return _to ToggleSelect(index); } \
  192.   NS_IMETHOD RangedSelect(PRInt32 startIndex, PRInt32 endIndex, PRBool augment) { return _to RangedSelect(startIndex, endIndex, augment); } \
  193.   NS_IMETHOD ClearRange(PRInt32 startIndex, PRInt32 endIndex) { return _to ClearRange(startIndex, endIndex); } \
  194.   NS_IMETHOD ClearSelection(void) { return _to ClearSelection(); } \
  195.   NS_IMETHOD InvertSelection(void) { return _to InvertSelection(); } \
  196.   NS_IMETHOD SelectAll(void) { return _to SelectAll(); } \
  197.   NS_IMETHOD GetRangeCount(PRInt32 *_retval) { return _to GetRangeCount(_retval); } \
  198.   NS_IMETHOD GetRangeAt(PRInt32 i, PRInt32 *min, PRInt32 *max) { return _to GetRangeAt(i, min, max); } \
  199.   NS_IMETHOD InvalidateSelection(void) { return _to InvalidateSelection(); } \
  200.   NS_IMETHOD AdjustSelection(PRInt32 index, PRInt32 count) { return _to AdjustSelection(index, count); } \
  201.   NS_IMETHOD GetSelectEventsSuppressed(PRBool *aSelectEventsSuppressed) { return _to GetSelectEventsSuppressed(aSelectEventsSuppressed); } \
  202.   NS_IMETHOD SetSelectEventsSuppressed(PRBool aSelectEventsSuppressed) { return _to SetSelectEventsSuppressed(aSelectEventsSuppressed); } \
  203.   NS_IMETHOD GetCurrentIndex(PRInt32 *aCurrentIndex) { return _to GetCurrentIndex(aCurrentIndex); } \
  204.   NS_IMETHOD SetCurrentIndex(PRInt32 aCurrentIndex) { return _to SetCurrentIndex(aCurrentIndex); } \
  205.   NS_IMETHOD GetShiftSelectPivot(PRInt32 *aShiftSelectPivot) { return _to GetShiftSelectPivot(aShiftSelectPivot); } 
  206.  
  207. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  208. #define NS_FORWARD_SAFE_NSITREESELECTION(_to) \
  209.   NS_IMETHOD GetTree(nsITreeBoxObject * *aTree) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTree(aTree); } \
  210.   NS_IMETHOD SetTree(nsITreeBoxObject * aTree) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTree(aTree); } \
  211.   NS_IMETHOD GetSingle(PRBool *aSingle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSingle(aSingle); } \
  212.   NS_IMETHOD GetCount(PRInt32 *aCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCount(aCount); } \
  213.   NS_IMETHOD IsSelected(PRInt32 index, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsSelected(index, _retval); } \
  214.   NS_IMETHOD Select(PRInt32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->Select(index); } \
  215.   NS_IMETHOD TimedSelect(PRInt32 index, PRInt32 delay) { return !_to ? NS_ERROR_NULL_POINTER : _to->TimedSelect(index, delay); } \
  216.   NS_IMETHOD ToggleSelect(PRInt32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToggleSelect(index); } \
  217.   NS_IMETHOD RangedSelect(PRInt32 startIndex, PRInt32 endIndex, PRBool augment) { return !_to ? NS_ERROR_NULL_POINTER : _to->RangedSelect(startIndex, endIndex, augment); } \
  218.   NS_IMETHOD ClearRange(PRInt32 startIndex, PRInt32 endIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearRange(startIndex, endIndex); } \
  219.   NS_IMETHOD ClearSelection(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearSelection(); } \
  220.   NS_IMETHOD InvertSelection(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->InvertSelection(); } \
  221.   NS_IMETHOD SelectAll(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SelectAll(); } \
  222.   NS_IMETHOD GetRangeCount(PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRangeCount(_retval); } \
  223.   NS_IMETHOD GetRangeAt(PRInt32 i, PRInt32 *min, PRInt32 *max) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRangeAt(i, min, max); } \
  224.   NS_IMETHOD InvalidateSelection(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->InvalidateSelection(); } \
  225.   NS_IMETHOD AdjustSelection(PRInt32 index, PRInt32 count) { return !_to ? NS_ERROR_NULL_POINTER : _to->AdjustSelection(index, count); } \
  226.   NS_IMETHOD GetSelectEventsSuppressed(PRBool *aSelectEventsSuppressed) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectEventsSuppressed(aSelectEventsSuppressed); } \
  227.   NS_IMETHOD SetSelectEventsSuppressed(PRBool aSelectEventsSuppressed) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelectEventsSuppressed(aSelectEventsSuppressed); } \
  228.   NS_IMETHOD GetCurrentIndex(PRInt32 *aCurrentIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentIndex(aCurrentIndex); } \
  229.   NS_IMETHOD SetCurrentIndex(PRInt32 aCurrentIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCurrentIndex(aCurrentIndex); } \
  230.   NS_IMETHOD GetShiftSelectPivot(PRInt32 *aShiftSelectPivot) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShiftSelectPivot(aShiftSelectPivot); } 
  231.  
  232. #if 0
  233. /* Use the code below as a template for the implementation class for this interface. */
  234.  
  235. /* Header file */
  236. class nsTreeSelection : public nsITreeSelection
  237. {
  238. public:
  239.   NS_DECL_ISUPPORTS
  240.   NS_DECL_NSITREESELECTION
  241.  
  242.   nsTreeSelection();
  243.  
  244. private:
  245.   ~nsTreeSelection();
  246.  
  247. protected:
  248.   /* additional members */
  249. };
  250.  
  251. /* Implementation file */
  252. NS_IMPL_ISUPPORTS1(nsTreeSelection, nsITreeSelection)
  253.  
  254. nsTreeSelection::nsTreeSelection()
  255. {
  256.   /* member initializers and constructor code */
  257. }
  258.  
  259. nsTreeSelection::~nsTreeSelection()
  260. {
  261.   /* destructor code */
  262. }
  263.  
  264. /* attribute nsITreeBoxObject tree; */
  265. NS_IMETHODIMP nsTreeSelection::GetTree(nsITreeBoxObject * *aTree)
  266. {
  267.     return NS_ERROR_NOT_IMPLEMENTED;
  268. }
  269. NS_IMETHODIMP nsTreeSelection::SetTree(nsITreeBoxObject * aTree)
  270. {
  271.     return NS_ERROR_NOT_IMPLEMENTED;
  272. }
  273.  
  274. /* readonly attribute boolean single; */
  275. NS_IMETHODIMP nsTreeSelection::GetSingle(PRBool *aSingle)
  276. {
  277.     return NS_ERROR_NOT_IMPLEMENTED;
  278. }
  279.  
  280. /* readonly attribute long count; */
  281. NS_IMETHODIMP nsTreeSelection::GetCount(PRInt32 *aCount)
  282. {
  283.     return NS_ERROR_NOT_IMPLEMENTED;
  284. }
  285.  
  286. /* boolean isSelected (in long index); */
  287. NS_IMETHODIMP nsTreeSelection::IsSelected(PRInt32 index, PRBool *_retval)
  288. {
  289.     return NS_ERROR_NOT_IMPLEMENTED;
  290. }
  291.  
  292. /* void select (in long index); */
  293. NS_IMETHODIMP nsTreeSelection::Select(PRInt32 index)
  294. {
  295.     return NS_ERROR_NOT_IMPLEMENTED;
  296. }
  297.  
  298. /* void timedSelect (in long index, in long delay); */
  299. NS_IMETHODIMP nsTreeSelection::TimedSelect(PRInt32 index, PRInt32 delay)
  300. {
  301.     return NS_ERROR_NOT_IMPLEMENTED;
  302. }
  303.  
  304. /* void toggleSelect (in long index); */
  305. NS_IMETHODIMP nsTreeSelection::ToggleSelect(PRInt32 index)
  306. {
  307.     return NS_ERROR_NOT_IMPLEMENTED;
  308. }
  309.  
  310. /* void rangedSelect (in long startIndex, in long endIndex, in boolean augment); */
  311. NS_IMETHODIMP nsTreeSelection::RangedSelect(PRInt32 startIndex, PRInt32 endIndex, PRBool augment)
  312. {
  313.     return NS_ERROR_NOT_IMPLEMENTED;
  314. }
  315.  
  316. /* void clearRange (in long startIndex, in long endIndex); */
  317. NS_IMETHODIMP nsTreeSelection::ClearRange(PRInt32 startIndex, PRInt32 endIndex)
  318. {
  319.     return NS_ERROR_NOT_IMPLEMENTED;
  320. }
  321.  
  322. /* void clearSelection (); */
  323. NS_IMETHODIMP nsTreeSelection::ClearSelection()
  324. {
  325.     return NS_ERROR_NOT_IMPLEMENTED;
  326. }
  327.  
  328. /* void invertSelection (); */
  329. NS_IMETHODIMP nsTreeSelection::InvertSelection()
  330. {
  331.     return NS_ERROR_NOT_IMPLEMENTED;
  332. }
  333.  
  334. /* void selectAll (); */
  335. NS_IMETHODIMP nsTreeSelection::SelectAll()
  336. {
  337.     return NS_ERROR_NOT_IMPLEMENTED;
  338. }
  339.  
  340. /* long getRangeCount (); */
  341. NS_IMETHODIMP nsTreeSelection::GetRangeCount(PRInt32 *_retval)
  342. {
  343.     return NS_ERROR_NOT_IMPLEMENTED;
  344. }
  345.  
  346. /* void getRangeAt (in long i, out long min, out long max); */
  347. NS_IMETHODIMP nsTreeSelection::GetRangeAt(PRInt32 i, PRInt32 *min, PRInt32 *max)
  348. {
  349.     return NS_ERROR_NOT_IMPLEMENTED;
  350. }
  351.  
  352. /* void invalidateSelection (); */
  353. NS_IMETHODIMP nsTreeSelection::InvalidateSelection()
  354. {
  355.     return NS_ERROR_NOT_IMPLEMENTED;
  356. }
  357.  
  358. /* void adjustSelection (in long index, in long count); */
  359. NS_IMETHODIMP nsTreeSelection::AdjustSelection(PRInt32 index, PRInt32 count)
  360. {
  361.     return NS_ERROR_NOT_IMPLEMENTED;
  362. }
  363.  
  364. /* attribute boolean selectEventsSuppressed; */
  365. NS_IMETHODIMP nsTreeSelection::GetSelectEventsSuppressed(PRBool *aSelectEventsSuppressed)
  366. {
  367.     return NS_ERROR_NOT_IMPLEMENTED;
  368. }
  369. NS_IMETHODIMP nsTreeSelection::SetSelectEventsSuppressed(PRBool aSelectEventsSuppressed)
  370. {
  371.     return NS_ERROR_NOT_IMPLEMENTED;
  372. }
  373.  
  374. /* attribute long currentIndex; */
  375. NS_IMETHODIMP nsTreeSelection::GetCurrentIndex(PRInt32 *aCurrentIndex)
  376. {
  377.     return NS_ERROR_NOT_IMPLEMENTED;
  378. }
  379. NS_IMETHODIMP nsTreeSelection::SetCurrentIndex(PRInt32 aCurrentIndex)
  380. {
  381.     return NS_ERROR_NOT_IMPLEMENTED;
  382. }
  383.  
  384. /* readonly attribute long shiftSelectPivot; */
  385. NS_IMETHODIMP nsTreeSelection::GetShiftSelectPivot(PRInt32 *aShiftSelectPivot)
  386. {
  387.     return NS_ERROR_NOT_IMPLEMENTED;
  388. }
  389.  
  390. /* End of implementation class template. */
  391. #endif
  392.  
  393.  
  394. #endif /* __gen_nsITreeSelection_h__ */
  395.